﻿using System;
using System.Linq;
using Solution.BusinessObject;

namespace Solution.Controls
{
    public partial class MasterCategory : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var categories = CommonBO
                .MasterEDM
                .Categories
                .Where(t => t.Parent == null)
                .ToArray();
            this.rptMasterCategory.DataSource = categories;
            this.rptMasterCategory.DataBind();
        }
    }
}